package com.vteba.utils.json;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.deser.std.DateDeserializers;

@JsonIgnoreProperties(value = {"URL"})
public class Bean {
    private String userName;
    private Date date;
    private String dates;
    private int index;
    private Integer integerColumn;
    private boolean test;
    private Boolean boolType;
    private Long longType;
    
    @JsonProperty("name")
    public String getUserName() {
        return userName;
    }
    
    public void setUserName(String userName) {
        this.userName = userName;
    }
    
    @JsonDeserialize(using = DateDeserializers.DateDeserializer.class)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @JsonProperty("pubtime")
    public Date getDate() {
        return date;
    }
    
    public void setDate(Date date) {
        this.date = date;
    }
    
    @JsonDeserialize(using = DateDeserializer.class)
    @JsonProperty("datetime")
    public String getDates() {
        return dates;
    }
    
    public void setDates(String dates) {
        this.dates = dates;
    }

	/**
	 * @return the index
	 */
	public int getIndex() {
		return index;
	}

	/**
	 * @param index the index to set
	 */
	public void setIndex(int index) {
		this.index = index;
	}

	/**
	 * @return the integerColumn
	 */
	public Integer getIntegerColumn() {
		return integerColumn;
	}

	/**
	 * @param integerColumn the integerColumn to set
	 */
	public void setIntegerColumn(Integer integerColumn) {
		this.integerColumn = integerColumn;
	}

	/**
	 * @return the test
	 */
	public boolean isTest() {
		return test;
	}

	/**
	 * @param test the test to set
	 */
	public void setTest(boolean test) {
		this.test = test;
	}

	/**
	 * @return the boolType
	 */
	public Boolean getBoolType() {
		return boolType;
	}

	/**
	 * @param boolType the boolType to set
	 */
	public void setBoolType(Boolean boolType) {
		this.boolType = boolType;
	}

	/**
	 * @return the longType
	 */
	public Long getLongType() {
		return longType;
	}

	/**
	 * @param longType the longType to set
	 */
	public void setLongType(Long longType) {
		this.longType = longType;
	}
    
}
